/**
 * 消息提示
 */
const utils = {
  toast(title = '提示') {
    wx.showToast({
      title: title,
      icon:'none',
      mask:true
    })
  },
  timedata(time,is) {
    const res = new Date(time)
    const nian = res.getFullYear()
    const yue = res.getMonth() + 1
    const ri = res.getDate() 

    const zong =  [nian,yue,ri].map(item => {
      return item >= 10 ?  item : '0' +  item
    }).join(is)
    return zong
    
    
  }
}

export default utils